package com.基本数据类型和引用数据类型区别01;

public class StringBuilderTest01 {


    public static void change(StringBuilder a,StringBuilder b){
        a.append("AA");
        b.append("BB");
    }


    public static void main(String[] args) {
        StringBuilder a = new StringBuilder("A");
        StringBuilder b = new StringBuilder("B");

        change(a,b);
        System.out.println(a);//AAA
        System.out.println(b);//BBB

    }

}
